From faeda954c3b7612a08e857fb0b8c020a4ea89a70 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 22 Nov 2007 17:44:51 +0000 Subject: [PATCH] acm: Fix an exit label. Jump to a different error exit label if error occurs early in the policy update process. Signed-off-by: Stefan Berger --- xen/xsm/acm/acm_policy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/xsm/acm/acm_policy.c b/xen/xsm/acm/acm_policy.c index fce439c9fa..a7eff56903 100644 --- a/xen/xsm/acm/acm_policy.c +++ b/xen/xsm/acm/acm_policy.c @@ -104,7 +104,7 @@ _acm_update_policy(void *buf, u32 buf_size, int is_bootpolicy, /* if ssidrefs are to be deleted, make sure no domain is using them */ if ( deletions != NULL ) if ( acm_check_deleted_ssidrefs(deletions, errors) ) - goto error_lock_free; + goto error_lock_free_nossidchange; if ( (ssidchanges != NULL) && (ssidchanges->num_items > 0) ) /* assign all running domains new ssidrefs as requested */ @@ -169,6 +169,7 @@ error_lock_free: { acm_doms_restore_ssidref(); } +error_lock_free_nossidchange: do_chwall_init_state_curr(NULL); write_unlock(&acm_bin_pol_rwlock); -- 2.30.2